<ui:composition template="index.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

	<ui:define name="content">
		<h:form class="form-signin">
			<p:growl id="growl" showDetail="true" life="3000" />

			<label for="username">#{strings['login.username']}</label>
			<h:inputText id="username" value="#{authenticationBean.username}"
				required="true" label="#{strings['login.username']}" />
			<br />
			<label for="password">#{strings['login.password']}</label>
			<h:inputSecret id="password" value="#{authenticationBean.password}"
				required="true" label="#{strings['login.password']}" />
			<br />
			<h:commandButton class="btn btn-large btn-primary"
				value="#{strings['login.button.login']}"
				actionListener="#{authenticationBean.login}"
				oncomplete="handleLoginRequest(xhr, status, args)" update="growl" />
		</h:form>
	</ui:define>

</ui:composition>